package jun.learn.jackson;

import java.util.Date;

import org.codehaus.jackson.annotate.JsonIgnore;

public class User {
	private String username;
	private String password;
	private int age;
	private String no;
	private Date birthday;
	
	//序列化时忽略某个属性，使用以下方法，此注解在字段上无效。。 
	@JsonIgnore
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getNo() {
		return no;
	}
	public void setNo(String no) {
		this.no = no;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
}
